import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: HomeView,
  },
  {
    path: "/about",
    name: "about",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
  },
  {
    path: "/workerTest",
    name: "workerTest",
    component: () => import("@/views/workerTest/WorkerIndex.vue"),
  },
  {
    path: "/EchartsIndex",
    name: "EchartsIndex",
    component: () => import("@/views/echarts/EchartsIndex.vue"),
  },
  {
    path: "/ChartsG6",
    name: "ChartsG6",
    component: () => import("@/views/antvG6/ChartsG6.vue"),
  },
  {
    path: "/g6jftest",
    name: "g6jftest",
    component: () => import("@/views/antvG6/g6jftest.vue"),
  },
  {
    path: "/OverallLink",
    name: "OverallLink",
    component: () => import("@/views/G6graph/OverallLink.vue"),
  },
  {
    path: "/ScleTable",
    name: "ScleTable",
    component: () => import("@/views/scleTable/ScleTable.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});
//路由
export default router;
